$(function(){
 $("#login_butto").click(function(){
	 var parms=$("#login").serialize();
	 $.post("login.html",parms,function(data){
		 if(data.success){
			 location.replace(data.url);
		 }else{
			 $("#tiShi").css("color","red");
			 $("#tiShi").html("密码账号错误！");
		 }
	 },"json");
 });
 
 	$("#dianJi_button").click(function () {
 		var parmss=$("#form-control").serialize();
 		$.post("main",parmss,function(data){
 			if(data.success){
					location.replace(data.url);
				}else{
					var str="输入错误"+"\n"+"格式如:10001";
					alert(str);
				}
 		},"json");
 	});
});